package com.marvels.approve.process.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.marvels.approve.loan.dto.McamAcLoanApplyImageInfo;
import com.marvels.approve.process.dto.LaAttachAtmeTypeViewDTO;
import com.marvels.approve.process.dto.LaAttachmentDTO;
import com.marvels.common.exception.MarvelsBusinessException;

public interface AttachmentInfoService {

	public List<LaAttachAtmeTypeViewDTO> selectAttachmentInfo(LaAttachmentDTO laAttachmentDTO) throws MarvelsBusinessException;
	
	/**
	 * 获取当前影像页面支持的附件类型和附件信息
	 * @param attachmentType
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public List<LaAttachAtmeTypeViewDTO> getAttachmentsByViewKey(LaAttachAtmeTypeViewDTO laAttachAtmeTypeView,String loanId) throws MarvelsBusinessException;
	
	/**
	 * 根据 id加载附件影像
	 * @param fileId
	 * @param request
	 * @param response
	 * @throws MarvelsBusinessException
	 */
	public void loadAttachmentById(Long id,HttpServletRequest request,HttpServletResponse response) throws MarvelsBusinessException;

	/**根据贷款编号和类型查询附件
	 * @author 娄凯琦
	 * @date 2018年9月27日  
	 * @param laAttachmentDTO
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public List<LaAttachmentDTO> getAttachmentByLoanIdAndType(LaAttachmentDTO laAttachmentDTO)  throws MarvelsBusinessException;
}
